# coding: utf-8
from enum import Enum

from qfluentwidgets import FluentIconBase, Theme, getIconColor

from .setting import IMAGES_DIR


class Icon(FluentIconBase, Enum):

    def path(self, theme=Theme.AUTO):
        return (IMAGES_DIR / f"icons/{self.value}_{getIconColor(theme)}.svg").as_posix()


class SingleIcon(FluentIconBase, Enum):
    Logo = 'Logo.png'
    Nuitka = 'Nuitka.svg'
    Pyinstaller = 'Pyinstaller.png'
    Setting = 'Setting.svg'
    THEME = 'Theme.svg'
    Joystick = 'Joystick.svg'
    Python = 'Python.svg'
    Rocket = 'Rocket.svg'
    Deployment = 'Deployment.svg'
    BasicSetting = 'BasicSetting.svg'
    Terminal = 'Terminal.svg'
    Packing = 'Packing.svg'
    Folder = 'Folder.svg'

    def path(self, theme=Theme.AUTO) -> str:
        return (IMAGES_DIR / 'single' / self.value).as_posix()
